#include <iostream>
#include <cmath>
using namespace std;

int main_5()
{
    const double PI=acos(-1);
    double r,h;
    scanf("%lf%lf",&r,&h);
    printf("Area=%.3f\n",2*PI*r*(r+h));
	return 0;
}
